﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Chaos.model
{
    public class chaoscardspace : INotifyPropertyChanged, stream.streamable
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void Notify(string property)
        {
            if (this.PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        private String m_filter = "";
        public String Filter
        {
            get { return m_filter; }
            set
            {
                if (m_filter != value)
                {
                    m_filter = value;
                    Notify("Filter");
                }
            }
        }   

        public virtual void serialize(stream.stream io_Stream)
        {
            io_Stream.begin("chaoscardspace")
                .serialize("Filter", ref m_filter)
            .end();
        }
    }
}
